import random

# 生成随机验证码
def generate_random_captcha():
    captcha = ""
    for _ in range(4):
        captcha += random.choice("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")
    return captcha